﻿#region File Header
/***********************************************************************
 * Copyright © 2013 Beals Software
 * All Rights Reserved
************************************************************************
Author: Donald Beals
Date: February 4th, 2013
Description: TODO: Write a description of this file here.
****************************** Change Log ******************************
02.04.13 - Created initial file. (dbeals)
***********************************************************************/
#endregion

#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
#endregion

namespace GameJolt
{
	/// <summary>
	/// 
	/// </summary>
	public sealed class UserCollection : KeyedCollection<string, User>
	{
		#region Constructors
		public UserCollection()
		{
		}

		public UserCollection(IEnumerable<User> users)
		{
			this.AddRange(users);
		}
		#endregion

		#region Methods
		protected override string GetKeyForItem(User item)
		{
			return item.ID;
		}

		public void AddRange(IEnumerable<User> users)
		{
			foreach(var user in users)
				this.Add(user);
		}
		#endregion
	}
}
